home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- time = new Date();
- Hours = time.getHours();
- Minutes = time.getMinutes();
- Seconds = time.getSeconds();
- if(Hours >= 11)
- {
- Hours -= 12;
- }
- MinSec = Minutes * 60 + Seconds;
- Total = Hours * 3600 + MinSec;
- HourHand._rotation = Total / 120;
- MinHand._rotation = MinSec / 10;
- SecHand._rotation = Seconds * 6;
- if(_parent._framesLoaded >= 2)
- {
- _parent.gotoAndStop(2);
- }
- }
-